package com.wanxi.object;

public class Person {
    String name;
    int age;

    public void sleep(String name) {
        System.out.println("休息" + name);
    }

    public void eat() {
        System.out.println("吃饭");
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

//    public void show() {
//        System.out.println("名字为：" + name + " \n年龄为：" + age);
//    }
}
